//  更改为任意类型之后,可以修改
let anyThing:any = "hello";

anyThing = 1;


// 可以访问任意的属性

console.log(anyThing.myName.firstName);

// 未声明类型的变量(没有赋值) 会被识别为任意类型
let something;//等价于let something any;
something = 'seven';
something = 7;

something.setName('Tom');